TextShape AddHatchPatternHelixFilling
Adds a helix type pattern to the shape
public void AddHatchPatternHelixFilling(float helixGap, HelixStyle style, HatchOffsetAlgorithm algorithm, HatchCornerStyle cornerStyle) |
Return value
void |
Parameters
float | helixGap | pitch of the helix |
HelixStyle | style | Style of the Helix |
HatchOffsetAlgorithm | algorithm | HatchOffsetAlgorithm to be used |
HatchCornerStyle | cornerStyle | Corner style of the hatch |
Example
Copy
TextShape textShape = new TextShape();
textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;
textShape.DotDurationMicroseconds = 2;
textShape.HorizontalAlign = TextHorizontalAlign.Left;
textShape.VerticalAlign = TextVerticalAlign.Center;
textShape.WordWrap = true;
textShape.LineSpaceStyle = TextLineSpaceStyle.Factor;
textShape.LineSpace = 1f;
textShape.AddHatchPatternHelixFilling(0.2f, HelixStyle.InwardToOut, HatchOffsetAlgorithm.DirectOffset,
HatchCornerStyle.SmoothWithArcs);
vectorImage.AddText(textShape);